<?php
?>
<!--底部 begin-->
<div class="footer">
    <!--底部faq begin-->
    <div class="footerFaq">
        <div class="footerFaq1200">
            <a class="faq" href="<?php echo site_url('question/questionlist')?>"><img src="<?php echo base_url('common/home')?>/img/faq.jpg" width="416" height="140" alt="" /></a>
            <div class="ensure camera"></div>
            <div class="ensure sheep"></div>
            <div class="ensure clock"></div>
        </div>
    </div>
    <!--底部faq end-->
    <!--底部关于我们 begin-->
    <div class="footerAbout">
        <div class="footerAbout1200">
            <div class="works workTime">
                <h1>工作时间：</h1>
                <div>
                    每日 AM10:00 - PM10:00<br />（法定节日休息  周六日无休）
                </div>
            </div>
            <div class="works workWay">
                <h1>联系方式：</h1>
                <div>
                    QQ:244263856<br />
                    电话：0311-86087514
                </div>
            </div>
            <div class="works workAddress">
                <h1>门店地址：</h1>
                <div>
                    河北省·石家庄市<br />桥东区圆明路37号
                </div>
            </div>
            <a class="footerAboutUs" href="<?php echo site_url('about/aboutinfo')?>"><img src="<?php echo base_url('common/home')?>/img/footerAboutUs.jpg" width="228" height="154" alt="" /></a>
        </div>
    </div>
    <!--底部关于我们 end-->
    <div class="copyRight">
        <div class="copyLeft">Copyright All rights reserved© 2016&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;冀ICP备案：<?php echo !empty($configModel)?$configModel->icp:""?></div>
        <div class="copyRight">版权所有：<?php echo !empty($configModel)?$configModel->copyright:""?>&nbsp;&nbsp;&nbsp;&nbsp;技术支持：<a href="http://www.weiw.cc">全橙网络</a></div>
    </div>
</div>
<!--底部 end-->
<script type="text/javascript">
    $(".login").click(function () {
        var islogin = $(this).attr('islogin');
        if (!islogin) {
            layer.open({
                type: 2,
                title: false,
                maxmin: false,
                shadeClose: false, //开启点击遮罩关闭层
                area: ['796px', '637px'],
                offset: ['100px', ''],
                closeBtn: 0,
                content: '<?php echo site_url('login/lr')?>'
            });
        } else {
            window.location.href = "<?php echo site_url('customer/index')?>";
        }

    });
    function dologin(index) {
        if (index != undefined && index > 0) {
            layer.close(index);
        }        
        layer.open({
            type: 2,
            title: false,
            maxmin: false,
            shadeClose: false, //开启点击遮罩关闭层
            area: ['424px', '419px'],
            offset: ['100px', ''],
            closeBtn: 0,
            content: '<?php echo site_url('login/index')?>'
        });
    }
    function login_success(index) {
        layer.close(index);
        var lindex = layer.open({
            type: 2,
            title: false,
            maxmin: false,
            shadeClose: false, //开启点击遮罩关闭层
            area: ['424px', '419px'],
            offset: ['100px', ''],
            closeBtn: 0,
            content: '<?php echo site_url('login/login_success')?>'
        });
        var out = '<a href="javascript:signout()" style="float:right;color:#717171;font-size:14px;margin-right:3px;">退出</a>';
        $(".welcome .welcome1200").append(out);
        get_cart_after_login('<?php echo site_url()?>')
        setTimeout(function () {
            layer.close(lindex);
        }, 3000);
    }
    function login_fail(index) {
        layer.close(index);
        var lindex = layer.open({
            type: 2,
            title: false,
            maxmin: false,
            shadeClose: false, //开启点击遮罩关闭层
            area: ['424px', '419px'],
            offset: ['100px', ''],
            closeBtn: 0,
            content: '<?php echo site_url('login/login_fail')?>'
        });
        setTimeout(function () {
            dologin(lindex);
        }, 2000);
    }

    function register(index) {
        layer.close(index);
        layer.open({
            type: 2,
            title: false,
            maxmin: false,
            shadeClose: false, //开启点击遮罩关闭层
            area: ['424px', '606px'],
            offset: ['100px', ''],
            closeBtn: 0,
            content: '<?php echo site_url('login/register')?>'
        });
    }
    function register_success(index) {
        layer.close(index);
        var lindex = layer.open({
            type: 2,
            title: false,
            maxmin: false,
            shadeClose: false, //开启点击遮罩关闭层
            area: ['424px', '419px'],
            offset: ['100px', ''],
            closeBtn: 0,
            content: '<?php echo site_url('login/success_register')?>'
        });
        setTimeout(function () {
            layer.close(lindex);
        }, 3000);
    }

    function register_fail(index) {
        layer.close(index);
        var lindex = layer.open({
            type: 2,
            title: false,
            maxmin: false,
            shadeClose: false, //开启点击遮罩关闭层
            area: ['424px', '419px'],
            offset: ['100px', ''],
            closeBtn: 0,
            content: '<?php echo site_url('login/register_fail')?>'
        });
        setTimeout(function () {
            register(lindex)
        }, 3000);
    }

    function signout() {
        $.post("<?php echo site_url('login/signout')?>", null, function (data) {
            var jsonData = $.parseJSON(data);
            if (jsonData.Statu == 'ok') {
                window.location.href = "<?php echo site_url()?>";

            }
            else if (jsonData.Statu == 'out') {
                window.location.href = "<?php echo site_url()?>";
            }
            else {
                window.location.href = "<?php echo site_url()?>";
            }
        })
        $(".login").attr('islogin', false);
    }
    
</script>
<!--qq begin-->
<a class="qq"></a>
<!--qq end-->
<!--微信 begin-->
<a class="weChat"></a>
<div class="weChat2">
    <img src="<?php echo base_url('common/home')?>/img/weChat2.png" width="134" height="166" alt="" />
</div>
<!--微信 end-->
	</body>
</html>

